package com.jxc.jxc01.grc.entity;

import java.util.Objects;

public class Vendor {
    private int id;
    private String suppliername;
    private String headname;
    private String phone;
    private String address;
    private String bank;
    private String creationtime;
    private String updatetime;


    public Vendor() {
    }

    public Vendor(int id, String suppliername, String headname, String phone, String address, String bank, String creationtime, String updatetime) {
        this.id = id;
        this.suppliername = suppliername;
        this.headname = headname;
        this.phone = phone;
        this.address = address;
        this.bank = bank;
        this.creationtime = creationtime;
        this.updatetime = updatetime;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return suppliername
     */
    public String getSuppliername() {
        return suppliername;
    }

    /**
     * 设置
     * @param suppliername
     */
    public void setSuppliername(String suppliername) {
        this.suppliername = suppliername;
    }

    /**
     * 获取
     * @return headname
     */
    public String getHeadname() {
        return headname;
    }

    /**
     * 设置
     * @param headname
     */
    public void setHeadname(String headname) {
        this.headname = headname;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return bank
     */
    public String getBank() {
        return bank;
    }

    /**
     * 设置
     * @param bank
     */
    public void setBank(String bank) {
        this.bank = bank;
    }

    /**
     * 获取
     * @return creationtime
     */
    public String getCreationtime() {
        return creationtime;
    }

    /**
     * 设置
     * @param creationtime
     */
    public void setCreationtime(String creationtime) {
        this.creationtime = creationtime;
    }

    /**
     * 获取
     * @return updatetime
     */
    public String getUpdatetime() {
        return updatetime;
    }

    /**
     * 设置
     * @param updatetime
     */
    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public String toString() {
        return "Vendor{id = " + id + ", suppliername = " + suppliername + ", headname = " + headname + ", phone = " + phone + ", address = " + address + ", bank = " + bank + ", creationtime = " + creationtime + ", updatetime = " + updatetime + "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Vendor vendor = (Vendor) o;
        return id == vendor.id && Objects.equals(suppliername, vendor.suppliername) && Objects.equals(headname, vendor.headname) && Objects.equals(phone, vendor.phone) && Objects.equals(address, vendor.address) && Objects.equals(bank, vendor.bank) && Objects.equals(creationtime, vendor.creationtime) && Objects.equals(updatetime, vendor.updatetime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, suppliername, headname, phone, address, bank, creationtime, updatetime);
    }
}
